package tuding.android.bigplanettracks.maps;

import tuding.android.bigplanettracks.maps.geoutils.Point;

public class Marker {
	
	public Place place;
	public RawTile tile;
	public Point offset;
	public android.graphics.Point GMOffset;
	public Point offset_from_topleft;
	public int actionType = 0; //0: nothing, 1: notes, 2: photo, 3: blog, 4: voice, 5: video ...
	public long actionID = 0; // also include markerID
	public boolean isGPS;
	private MarkerImage markerImage;
	private int markerType = 0; // default is mylocation marker
	
	public Marker(Place place, MarkerImage markerImage, boolean isGPS, int type){
		this.place = place;	
		this.isGPS = isGPS;
		this.markerImage = markerImage;
		this.markerType = type;
		this.offset_from_topleft = new Point(0, 0);
		this.GMOffset = new android.graphics.Point(0, 0);
	}
	
	public Marker(Place place, MarkerImage markerImage, boolean isGPS){
		this.place = place;	
		this.isGPS = isGPS;
		this.markerImage = markerImage;
		this.offset_from_topleft = new Point(0, 0);
		this.GMOffset = new android.graphics.Point(0, 0);
	}
	
	public Marker(Place place, MarkerImage markerImage, boolean isGPS, int type, int actionType, long actionID) {
		this.place = place;	
		this.isGPS = isGPS;
		this.markerImage = markerImage;
		this.markerType = type;
		this.actionType = actionType;
		this.actionID = actionID;
		this.offset_from_topleft = new Point(0, 0);
		this.GMOffset = new android.graphics.Point(0, 0);
	}
	
	public int getMarkerType() {
		return this.markerType;
	}
	
	public Point getOffset(){
		return this.offset;
	}
	
	public android.graphics.Point getGMOffset() {
		return this.GMOffset;
	}
	
	public MarkerImage getMarkerImage(){
		return this.markerImage;
	}
	
	public void setMarkerImage(MarkerImage markerImage){
		this.markerImage = markerImage;
	}
	
	public int getMarkerActionType() {
		return this.actionType;
	}
	
	public long getMarkerActionID() {
		return this.actionID;
	}
}


	

